package com.zhouheng.springbootdesignpattern.observerpattern;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 观察者1-机构主力
 *
 * @author 周恒
 * @date 20190401 17:01:11
 * @since v1.0
 */
@Data
@AllArgsConstructor
public class ConcreteObserver1 implements Observer{

    private String name;

    @Override
    public void update() {
        System.out.println(this.name + "知道股票下跌了：一点不慌，甚至想加仓");
    }

}
